/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.c.a.a;

import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Map;

public class b implements Iterable {
    private final List a = new LinkedList();
    private final Map b = new HashMap();

    public void a(f paramf) {
        if (paramf == null)
            return;
        String str = paramf.a().toLowerCase(Locale.US);
        Object localObject = (List) this.b.get(str);
        if (localObject == null) {
            localObject = new LinkedList();
            this.b.put(str, localObject);
        }
        ((List) localObject).add(paramf);
        this.a.add(paramf);
    }

    public f a(String paramString) {
        if (paramString == null)
            return null;
        String str = paramString.toLowerCase(Locale.US);
        List localList = (List) this.b.get(str);
        if ((localList != null) && (!(localList.isEmpty())))
            return ((f) localList.get(0));
        return null;
    }

    public Iterator iterator() {
        return Collections.unmodifiableList(this.a).iterator();
    }

    public String toString() {
        return this.a.toString();
    }
}